package com.panshi.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("搜索表实体类")
public class SearchBean implements Serializable {
    @ApiModelProperty("搜索id")
    private int sid;

    @ApiModelProperty("文章(问题)id")
    private int aid;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("简介")
    private String Introduction;

    @ApiModelProperty("分类")
    private int tid;

    @ApiModelProperty("分类名称")
    private String tname;

    @ApiModelProperty("用户id")
    private int uid;

    @ApiModelProperty("用户名称")
    private String username;

    @ApiModelProperty("用户头像")
    private String uimgpath;

    @ApiModelProperty("回答(评论)数量")
    private int answer_count;

    @ApiModelProperty("阅读量")
    private int read_count;

    @ApiModelProperty("收藏量")
    private int collection_count;

    @ApiModelProperty("发布时间")
    private Date time;

    @ApiModelProperty("图片地址")
    private String imgpath;

    @ApiModelProperty("10资讯 20问答")
    private int type;
}
